package com.yunhe.common.filter;

import org.springframework.stereotype.Component;

/**
 * <p>Description: 用于存储一个微服务进程中   用户自定义的变量  最后会把这个变量存储到ThreadLocal中去</p>
 *
 */
@Component
public class ServerContext {

    public static final String PROJECT_CODE = "PROJECT-CODE";

    public static final String ACCESS_TOKEN = "access-token";

    private String projectCode= "";

    private String accessToken= "";

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }
}
